<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
<html <?php language_attributes(); ?>>
<head>
	<meta charset="utf-8" />
	<title><?php bloginfo('name'); ?> <?php wp_title(' | ', true, 'left'); ?></title>
	<?php if(get_option('reedwan_feedburner_url')): ?>
		<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php echo get_option('reedwan_feedburner_url'); ?>" /> 
	<?php endif; ?>
	<?php if(get_option('reedwan_favicon')): ?>
		<link rel="shortcut icon" href="<?php echo get_option('reedwan_favicon'); ?>" />
	<?php endif; ?>
	<meta name="description" content="">
	<meta name="author" content="">
	
	<!-- Mobile Specific Metas -->
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> 
	
	<script type="application/x-javascript">
		addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
		function hideURLbar(){
			window.scrollTo(0,1);
		}
	</script>
	<?php
	wp_localize_script('ReedwanStyle', 'ReedwanVars', array(
	'ajaxUrl' => admin_url('admin-ajax.php'),
	));
	?>
	<?php if(is_singular()) { wp_enqueue_script('comment-reply'); } ?>
	<?php wp_head(); ?>
	<!--[if IE 8]><link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri();?>/css/ie8.css" /><![endif]-->
	
	<!--[if IE 7]><link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri();?>/css/ie7.css" /><![endif]-->
</head>

<body <?php body_class(); ?>>

	<div id="fb-root"></div>
	<script>(function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];  if (d.getElementById(id)) return;  js = d.createElement(s); js.id = id;  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";  fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
	
<?php $theme_layout = get_option('reedwan_themelayout','true'); ?>
<?php if(get_option('reedwan_show_ticker') == 'true' || get_option('reedwan_show_top_menu') == 'true'):?>
<?php if ($theme_layout=="full"){ echo '<div class="top-wrap">'; }?>
	<div class="top row">
		
		<?php if(get_option('reedwan_show_ticker') == 'true'):?>
		<div class="grid_6">
			<?php get_template_part('includes/spotlight'); ?>
		</div>
		<?php endif; ?>
		
		<?php if(get_option('reedwan_show_top_menu') == 'true'):?>
		<div class="grid_6 top-nav-wrapper">
				<?php wp_nav_menu( array( 'container' =>false, 'theme_location' => 'topNav', 'menu_class' => 'topNav' ) ); ?>
		</div>
		<div class="grid_12 mobile-nav-wrapper">
			<?php dropdown_menu( array('dropdown_title' => __('Select a Page','unicorn'), 'indent_string' => '- ', 'indent_after' => '', 'theme_location'=>'topNav') ); ?>	
		</div>
		<?php endif; ?>
	</div>
<?php if ($theme_layout=="full"){ echo '</div>'; }?>
	<div class="arrow-top"><div class="arrow-down black"></div></div>
<?php endif; ?>

<!-- Header -->
<?php if ($theme_layout=="full"){ echo '<div class="header-wrap">'; }?>
	<div class="header row">
		<!-- Header Logo-->
		<div class="header-logo">
			<?php
				if(get_option('reedwan_logo')) {
					$logo = get_option('reedwan_logo');
				}
				else
				{
					$logo = get_template_directory_uri() . '/images/header-logo.png';	
				}								
			?>
			<a href='<?php echo home_url(); ?>'><img src="<?php echo $logo; ?>" alt="<?php bloginfo('name'); ?>" /></a>
		</div>
		<?php if ( is_active_sidebar( 'header-banner' ) ) : ?>
			<!-- Begin Header Adds -->
			<div class="header-adds">
				<?php dynamic_sidebar( 'header-banner' ); ?>
			</div>
		<?php endif; ?>
	</div>
<?php if ($theme_layout=="full"){ echo '</div>'; }?>

<?php if ($theme_layout!="boxed"):?>
<?php if ($theme_layout=="full"){ echo '<div class="arrow-wrap">'; }?>
<div class="arrow row"><div class="arrow-down"></div></div>
<?php if ($theme_layout=="full"){ echo '</div>'; }?>
<?php endif; ?>

<!-- Navigation -->
<?php if ($theme_layout=="full"){ echo '<div class="navigation-wrap">'; }?>
	<div class="navigation row">
		<!-- Main Navigation -->
		<div class="grid_12 main-nav-wrapper">
			<?php wp_nav_menu( array( 'container' =>false, 'theme_location' => 'mainNav', 'menu_class' => 'sf-menu' ) ); ?>
		</div>	
		<div class="grid_12 mobile-nav-wrapper">
			<?php dropdown_menu( array('dropdown_title' => __('Select a Page','unicorn'), 'indent_string' => '- ', 'indent_after' => '', 'theme_location'=>'mainNav') ); ?>	
		</div>
	</div>
<?php if ($theme_layout=="full"){ echo '</div>'; }?>


<!-- Content -->
<?php if ($theme_layout=="full"){ echo '<div class="content-wrap">'; }?>
<div class="content row">

		
		
			
	
	
	
			
			
			
			
			
			
				
				
	
		
			